import request from '@/utils/request'

// 查询物料型号列表
export function listErpMaterialModel(query, pageReq) {
    return request({
        url: '/wms/materialModel/listAll',
        method: 'post',
        data: query,
        params: pageReq
    })
}


// 新增物料型号
export function addErpMaterialModel(data) {
    return request({
        url: '/wms/materialModel/add',
        method: 'post',
        data: data
    })
}

// 修改物料型号
export function updateErpArea(data) {
    return request({
        url: '/wms/materialModel',
        method: 'put',
        data: data
    })
}

// 删除物料型号
export function delErpMaterialModel(id) {
    return request({
        url: '/wms/materialModel/delect',
        method: 'post'
    })
}
